<?php include "includes/comunes.php";
$tabla="noticias";
$condicion=" NoticiaPublicar=1";
$orden=" order by NoticiaFecha desc limit 0,12";
$res=cons_sql($tabla,$condicion,$orden);

//seteo titulo de la pagina
$titulo="Informa"; 
 ?>

<head class="no-js">
        <?php include "includes/metas.php";?>
  </head>
<body>
 <?php include "includes/nav.php";?>
 <?php include "includes/header.php";?>    
 <?php include "includes/menu.php";?>  

<div class="container">
<div class="row"><div class="col-md-12">
<div class="destaca">INSSSEP Informa</div><div class="linea"></div>

</div>
</div>
</div>

<div class="space"></div>
<div class="container">

<?php 
$i=1;
while($reg=mysql_fetch_array($res)):

if($i==1){
echo '<div class="row">';

}
$i++;

?>
<div class="col-md-4 col-sm-4">
<div class="art">
<h4><a href="noticia.php?not=<?php echo utf8_encode($reg['NoticiaId'])?>"><?php echo utf8_encode($reg['NoticiaTitulo'])?></a></h4>
<span class="dia"><?php echo format_fec_age($reg['NoticiaFecha'])?></span>
<img src="<?php echo RUTAPANEL.utf8_encode($reg['NoticiaImagen'])?>"  alt="<?php echo utf8_encode($reg['NoticiaTitulo'])?>" />
<?php echo utf8_encode($reg['NoticiaResumen'])?>
<a href="noticia.php?not=<?php echo utf8_encode($reg['NoticiaId'])?>"><button type="button" class="btn btn-default btn-sm">Ver Más</button></a>
</div>
</div>
<?php 
if($i==4)
 {
 echo '</div>';
 $i=1;
 }


endwhile ?>	


<div class="linea"></div>
<?php include "includes/menuInferior.php";?> 
<div class="linea"></div>
<?php include "includes/footer.php";?> 
<?php include "includes/js.php";?>  

    </body>
</html>
